package com.hunzi.mapper;

import com.hunzi.domain.AdminUser;
import com.hunzi.domain.User;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

public interface AdminUserMapper {
    int deleteByPrimaryKey(Integer uid);

    int insert(AdminUser record);

    AdminUser selectByPrimaryKey(Integer uid);

    //查询所有管理员
    List<AdminUser> selectAll();

    int updateByPrimaryKey(AdminUser record);

    //管理员登录功能,根据用户名和密码登录
//    @PathVariable 动态获取输入的参数
    AdminUser longinUser(@PathVariable String username , @PathVariable String password);



}